package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcOldOutSetMealMapper;
import com.csun.cmny.provider.model.domain.OmcOldOutSetMeal;
import com.csun.cmny.provider.model.vo.old_out.OldOutSetMealVo;
import com.csun.cmny.provider.service.OmcOldOutSetMealService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-09-29 09:40
 * @Description: the class omc old out set meal service impl
 */
@Service
@Transactional
public class OmcOldOutSetMealServiceImpl extends BaseService<OmcOldOutSetMeal>
        implements OmcOldOutSetMealService {

    @Resource
    private OmcOldOutSetMealMapper omcOldOutSetMealMapper;

    /**
     * query old out set meal by old out id
     *
     * @param oldOutId the old out id
     * @return the old out set meal vo
     */
    @Override
    public List<OldOutSetMealVo> queryOldOutSetMealByOldOutId(Long oldOutId) {

        return omcOldOutSetMealMapper.queryOldOutSetMealByOldOutId(oldOutId);
    }
}
